import request from '@/utils/request'

// request({ }) // {} 就是 config
// { current: 1, pageSize: 10 }
// axios.get(url, config) 第二个参数是配置对象, 不能直接把 params 作为第二个参数, 第二个参数应该是一个对象, 里面进行配置
export const getArticles = params => request.get('/interview/query', { params })

export const getArticleDetail = id => request.get('/interview/show', { params: { id } })

export const updateArticleOpt = data => request.post('/interview/opt', data)

export const getArticlesLikeOrCollect = params => request.get('/interview/opt/list', { params })
